//
//  MJCommonHeader.h
//  MJ
//
//  Created by lina on 2017/12/7.
//  Copyright © 2017年 lina. All rights reserved.
//

#ifndef MJCommonHeader_h
#define MJCommonHeader_h

#define RGBColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define HEXColor(hex) [UIColor colorWithHexString:hex]

//当前api接口的版本号
#define MJ_API_VERSION       @"1.0"

//测试平台
#define MJ_HOSTTEST @"https://dev.mizhi.com/"

//线上
#define MJ_HOSTOFFICIAL @"https://www.mizhi.com/"

// 切换环境
#define MJ_DOMAINURL MJ_HOSTOFFICIAL


//登录成功拿到的票
#define MJ_Ticket           @"MJ_Ticket"
//登录成功拿到的uid
#define MJ_Uid              @"MJ_Uid"
//判断用户是否登录成功
#define IsLogined           @"MJ_IsLogined"


#define MJ_Sex              @"MJ_User_Sex"
#define MJ_Name             @"MJ_User_Name"
#define MJ_HeaderImage      @"MJ_User_HeaderImage"
#define MJ_HistoryExams     @"MJ_User_HistoryExams"

//http的请求头
#define MJ_HttpUserAgent      @"MJ_HttpUserAgent"
// uuid
#define  MJ_UUID         @"MJ_UserOnlyUUID"

#define networkError   @"网络条件差"

// View 圆角和加边框
#define ViewBorderRadius(View, Radius, Width, Color)\
[View.layer setCornerRadius:(Radius)];\
[View.layer setMasksToBounds:YES];\
[View.layer setBorderWidth:(Width)];\
[View.layer setBorderColor:[Color CGColor]]

#endif /* MJCommonHeader_h */
